/**
 * 
 */
package com.java.test.user.dto;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author 银行账户
 *
 */
public class BankAccountInfo implements RowMapper<BankAccountInfo> {

	// 主键id
	private int id;

	// 游戏账号
	private String gameAccount;

	// 1:银行卡 2:微信 3:支付宝 4:BNI 5:BTC 6:BAC
	private int drawingType;
	
	
	// 提款渠道类型名称
	private String drawingTypeName;
	
	
	private String drawName; 

	// 银行账户
	private String bankAccount;

	// 账户名称
	private String bankAccountName;

	// 联系电话
	private String telNumber;




	public String getDrawingTypeName() {
		return drawingTypeName;
	}

	public void setDrawingTypeName(String drawingTypeName) {
		this.drawingTypeName = drawingTypeName;
	}

	public String getDrawName() {
		return drawName;
	}

	public void setDrawName(String drawName) {
		this.drawName = drawName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getGameAccount() {
		return gameAccount;
	}

	public void setGameAccount(String gameAccount) {
		this.gameAccount = gameAccount;
	}

	public int getDrawingType() {
		return drawingType;
	}

	public void setDrawingType(int drawingType) {
		this.drawingType = drawingType;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getBankAccountName() {
		return bankAccountName;
	}

	public void setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
	}

	public String getTelNumber() {
		return telNumber;
	}

	public void setTelNumber(String telNumber) {
		this.telNumber = telNumber;
	}

	@Override
	public BankAccountInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
		BankAccountInfo info = new BankAccountInfo();

		info.setId(rs.getInt("id"));
		info.setBankAccount(rs.getString("bank_account"));
		info.setBankAccountName(rs.getString("bank_account_name"));
		info.setDrawingType(rs.getInt("drawing_type"));
		info.setGameAccount(rs.getString("game_account"));
		info.setTelNumber(rs.getString("tel_number"));

		return info;
	}

}
